package com.example.springsession.springbean;

import org.springframework.beans.BeansException;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2020/7/25 0025.
 *
 */
@Component
public class BeanPostProcessorGet implements org.springframework.beans.factory.config.BeanPostProcessor {

    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
        System.out.println("postProcessBeforeInitialization..."+beanName+"=>"+bean);
        return bean;
    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
        System.out.println("postProcessAfterInitialization..."+beanName+"=>"+bean);
        return bean;
    }

}
